package com.dingup.api.enums;

/**
 * Created by wancheng on 2018/8/25.
 */
public enum LessonTypeEnum {

    BANKE("班课"),
    VIP("vip");

    private String name;

    public static LessonTypeEnum getEnum(String name){
        LessonTypeEnum l = null;
        for (LessonTypeEnum e:LessonTypeEnum.values()) {
            if (e.name().equals(name)){
                l = e;
                break;
            }
        }
        return l;
    }

    LessonTypeEnum(String name) {
        this.name = name;
    }
}
